<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title><?php echo $title;?></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../public/plugin/layui/css/layui.css" media="all">
  <script src="../../public/js/jquery.js"></script>
</head>
<body>

  <div class="layui-fluid">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md12">
        <div class="layui-card">
          <div class="layui-card-header" style="padding-top:30px;"><?php echo $title;?></div>
          <div class="layui-card-body" pad15>
            <form action="add_judge_deal.php" method="post">
            <div class="layui-form">
			
			  <div class="layui-form-item">
				<label class="layui-form-label">题目类型</label>
				<div class="layui-input-block">
				
				  <select name="type" required>
				  <option value=""></option>
				<?php foreach($list as $k => $v):?>
					<option value="<?php echo $v['id'];?>"><?php echo $v['type_name'];?></option>
				<?php endforeach;?>
				  </select>
				
				</div>
			  </div>
			
              <div class="layui-form-item">
				<label class="layui-form-label">题目</label>
				<div class="layui-input-block">
				  <input type="text" name="question" placeholder="请输入题目" required class="layui-input">
				</div>
              </div>
              
			  <div class="layui-form-item">
                <label class="layui-form-label">答案</label>
                <div class="layui-input-inline">
                  <input type="text" name="answer" value="" placeholder="请输入选项" required class="layui-input">
                </div>
              </div>
              <div class="layui-form-item">
                <div class="layui-input-block">
                  <button class="layui-btn">添加</button>
                  <button type="reset" id="reset" class="layui-btn layui-btn-primary">重新填写</button>
                </div>
              </div>
            </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</body>
</html>
<script src="../../public/plugin/layui/layui.js"></script>
<script>
layui.use('form', function(){
  var form = layui.form;
  
});
</script>
<script>
/***清空表单****/
	$(function(){
		$("#reset").click(function(){
			$("input").val("");
		});
	});
</script>